package com.yllt4cloud.common.ddbase.result;


import com.yllt4cloud.common.ddbase.constant.ClerkConstants;
import com.yllt4cloud.common.ddbase.constant.GlobalConstants;
import com.yllt4cloud.common.ddbase.domain.Clerk;

/**
 * Created by Administrator on 2016/1/13.
 */
public class ClerkResult extends Clerk {
    private String deptName;
    private Integer isFreeze= GlobalConstants.FALSE;
    private String xinXiKaDaoQiShiJianStr;
    private String zanZhuZhengDaoQiRiStr;
    private String statusStr;
    private Integer xinXiKaIsDaoQi;//信息卡是否到期 1是0否
    private Integer zanZhuZhengIsDaoQi;//暂住证是否到期 1是0否

    private Integer  shengYuJieJiuNum; //剩余借酒的数量
    private Integer canJieJiu;  // 1 有借酒权限 0  否
    public Integer getXinXiKaIsDaoQi() {
		return xinXiKaIsDaoQi;
	}
	public void setXinXiKaIsDaoQi(Integer xinXiKaIsDaoQi) {
		this.xinXiKaIsDaoQi = xinXiKaIsDaoQi;
	}
	public Integer getZanZhuZhengIsDaoQi() {
		return zanZhuZhengIsDaoQi;
	}
	public void setZanZhuZhengIsDaoQi(Integer zanZhuZhengIsDaoQi) {
		this.zanZhuZhengIsDaoQi = zanZhuZhengIsDaoQi;
	}
	public String getStatusStr() {
		if(this.getStatus().equals(ClerkConstants.CLERK_STATUS_ENABLE)){
			return "在职";
		}else if(this.getStatus().equals(ClerkConstants.CLERK_STATUS_DISABLE)){
			return "离职";
		}else{
			return "删除";
		}
	}
/*	public String getXinXiKaDaoQiShiJianStr() {
    	if(this.getXinXiKaDaoQiShiJian() != null){
    		return DateUtils.formatDate(this.getXinXiKaDaoQiShiJian(), "YYYY-MM-dd");
    	}
    	return "";
	}
	public String getZanZhuZhengDaoQiRiStr() {
    	if(this.getZanZhuZhengDaoQiRi()!= null){
    		return DateUtils.formatDate(this.getZanZhuZhengDaoQiRi(), "YYYY-MM-dd");
    	}
    	return "";
	}*/
	public Integer getIsFreeze() {
        return isFreeze;
    }

    public void setIsFreeze(Integer isFreeze) {
        this.isFreeze = isFreeze;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Integer getShengYuJieJiuNum() {
        return shengYuJieJiuNum;
    }

    public void setShengYuJieJiuNum(Integer shengYuJieJiuNum) {
        this.shengYuJieJiuNum = shengYuJieJiuNum;
    }

    public Integer getCanJieJiu() {
        return canJieJiu;
    }

    public void setCanJieJiu(Integer canJieJiu) {
        this.canJieJiu = canJieJiu;
    }
}
